using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Entities;
using BUS;
using Utility;

public partial class Admin_DoanhNghiepThem : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
    }
    protected void btn_Add_Click(object sender, EventArgs e)
    {
        try
        {
            tbDoanhNghiep doanhnghiep = new tbDoanhNghiep();
            doanhnghiep.TenDN = txt_tendoanhnghiep.Text.ToString();
            doanhnghiep.DiaChi = txt_diachi.Text.ToString();
            doanhnghiep.DienThoai = txt_dienthoai.Text.ToString();
            doanhnghiep.Email = txt_email.Text.ToString();
            doanhnghiep.TaiKhoan = txt_taikhoan.Text.ToString();
            doanhnghiep.MatKhau = txt_matkhau.Text.ToString();
            tbDoanhNghiepBUS.Insert(doanhnghiep);




        }
        catch (Exception ex)
        {

        }
        Response.Redirect("~/Admin/DoanhNghiepDanhSach.aspx");

    }
}
